package com.ymxx.jweb.dao.security;

import org.springframework.stereotype.Repository;

import com.ymxx.jweb.dao.YMXXBaseDao;
import com.ymxx.jweb.persistence.organization.Department;

@Repository("departmentDao")
public class DepartmentDao extends YMXXBaseDao<Department>{

	/**
	 * 
	 * 添加一个新的部门
	 * @param dept
	 * @throws Exception
	 */
	public void addDepartment(Department dept)throws Exception{
		
		this.save(dept);
	}
}
